package service

import (
	"context"
	"mall-portalv2/internal/model"
)

func (s *Service) QueryProductAndCordFunding(ctx context.Context, CrowdFundingId, CrowdFundingThaliId, ProductSkuId, ProductId int64) (model.ViewProductCrowdFundingDetail, error) {
	result, err := s.dao.QueryProductAndCordFunding(ctx, CrowdFundingId, CrowdFundingThaliId, ProductSkuId, ProductId)
	if err != nil {
		return model.ViewProductCrowdFundingDetail{}, err
	}
	return result, err
}
